Skip to main content

All Tokens

Queries all the tokens and their respective chain UIDs within the router.

query Router($start: String, $end: String, $skip: Int, $limit: Int) {
router {
all_tokens(start: $start, end: $end, skip: $skip, limit: $limit) {
tokens {
token
chain_uid
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query All_tokens($max: String, $min: String, $skip: Int, $limit: Int) {\n router {\n all_tokens(max: $max, min: $min, skip: $skip, limit: $limit) {\n tokens {\n token\n chain_uid\n }\n }\n }\n}","variables":{"limit":null,"max":"usdc","min":"nibi","skip":1}}'

Open in Playground

Arguments

  • max (Token Id): The upper limit token Id that should be returned. Does not include the specified max value.
  • min (Token Id): The lower limit token Id to start from. Includes the specified min value.
  • skip (Int): The number of results to skip in the response.
  • limit (Int): The maximum number of results to return.

Return Fields

FieldTypeDescription
tokensTokenInfoThe tokens within the router contract.

TokenInfo

FieldTypeDescription
tokenStringThe identifier of the token.
chain_uidStringThe unique identifier (UID) of the chain.